Subset a RelDataModel
# S3 method for RelDataModel
[(x, i, rmForeignKeys = FALSE, ...)
the RelDataModel objcet
the index or the names of the elements to extract
if TRUE, remove foreign keys which are not available after extraction. If FALSE (default) the function will throw an error if any foreign keys does not exist in the extracted RelDataModel.
additional arguments for the RelDataModel
function.